The CGI module implements the Common Gateway Interface used on many web servers. Like the directory module, it's argument is a directory to check for the existence of files. Unlike the directory module, the files are not sent to the client. Instead, the file in that directory (AWS does not search subdirectories) is invoked as a CGI program. If the file does not exist, the server will continue processing map commands.
The CGI interface makes porting CGI programs from other servers straightforward. Many of those provided with the Amiga Web Server were written for use on NCSA httpd. A selections of CGI programs and documentation is included with the server.
AWS varies from the CGI spec in two places: